//Copyright 2011 New York City 3D Community

//This file is part of New York City 3D.

//New York City 3D is free software: you can redistribute it and/or modify
//it under the terms of the GNU General Public License as published by
//the Free Software Foundation, either version 3 of the License, or
//(at your option) any later version.

//New York City 3D is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU General Public License for more details.

//You should have received a copy of the GNU General Public License
//along with New York City 3D.  If not, see <http://www.gnu.org/licenses/>.

package nyc3d.gui;

import nyc3d.NYC3D;
import de.lessvoid.nifty.Nifty;
import de.lessvoid.nifty.screen.Screen;
import de.lessvoid.nifty.screen.ScreenController;

/**
 *
 * @author Joseph
 */
public class MainMenuScreen implements ScreenController{
    /**
   * the nifty instance.
   */
  private Nifty nifty;

  /**
   * the screen this menu belongs to.
   */
  private Screen screen;

  /**
   * bind.
   * @param niftyParam niftyParam
   * @param screenParam screenParam
   */
  public void bind(final Nifty niftyParam, final Screen screenParam) {
    this.nifty = niftyParam;
    this.screen = screenParam;
  }

  /**
   * just goto the next screen.
   */
  public final void onStartScreen() {
  }

  public final void onEndScreen() {
  }

  public void startNYC3D() {
    NYC3D.desiredState = NYC3D.State.GAME;
  }

  public void options() {
      nifty.fromXml("options.xml", "options");
  }

  public void about(){
      nifty.fromXml("about.xml", "about");
  }

  public void exit() {
    
    nifty.fromXml("game.xml", "exit");
    
  }

  
}